const WarningToSolveRouter = {
  path: '/warningtosolve',
  component: () => import('@/views/WarningToSolve/index.vue'),
  redirect: '/warningtosolve/index',
  name: 'warningtosolve',
  children: [
    {
      // 预警决策主页
      path: 'index',
      component: () => import('@/views/WarningToSolve/modules/Index/index.vue'),
      name: 'warningtosolveindex',
    },
    {
      // 主变负载
      path: 'duty',
      component: () => import('@/views/WarningToSolve/modules/Duty/index.vue'),
      name: 'dutyindex',
    },
    {
      // 主变负载二级详情页
      path: 'dutysecond',
      component: () => import('@/views/WarningToSolve/modules/DutySecond/index.vue'),
      name: 'dutysecondindex',
    },
    {
      // 在线监测
      path: 'onlie',
      component: () => import('@/views/WarningToSolve/modules/Onlie/index.vue'),
      name: 'onlieindex',
    },
    {
      // 物联感知
      path: 'iot',
      component: () => import('@/views/WarningToSolve/modules/IOT/index.vue'),
      name: 'iotindex',
    },
    {
      // 带电检测
      path: 'charg',
      component: () => import('@/views/WarningToSolve/modules/Charg/index.vue'),
      name: 'chargindex',
    },
    {
      // 十八项反措
      path: 'countermeasures',
      component: () => import('@/views/WarningToSolve/modules/CounterMeasures/index.vue'),
      name: 'countermeasuresindex',
    },
    {
      // 缺陷
      path: 'defects',
      component: () => import('@/views/WarningToSolve/modules/Defects/index.vue'),
      name: 'defectsindex',
    },
    {
      // 隐患
      path: 'danger',
      component: () => import('@/views/WarningToSolve/modules/Danger/index.vue'),
      name: 'dangerindex',
    },
    {
      // 智能联动 
      path: 'smart',
      component: () => import('@/views/WarningToSolve/modules/Smart/index.vue'),
      name: 'smartindex',
    },
    {
      // 带电检测跳转详情页
      path: 'xyddjc',
      component: () => import('@/views/WarningToSolve/modules/NewDdjc/index.vue'),
      name: 'xyddjc',
    },
  ]
};

export default WarningToSolveRouter;